html {
    background-color: white;
}

#head {
    margin: 0 auto;
    max-width: 1000px;
    height: 40px;
    line-height: 40px;
    vertical-align: middle;
    background: linear-gradient(to right, #00a9ff, #d900fb);
    font-weight: bolder;
    font-style: italic;
    text-align: center;
    text-decoration: blink;
    color: white;
    font-size: 32px;
    font-family: 幼圆;
}

div {
    transform-style: preserve-3d;
}

.container {
    position: absolute;
    top: 120px;
    left: 250px;
    perspective: 1000px;
    width: 400px;
    height: 400px;
    transform-style: preserve-3d;
}

.cube {
    width: 400px;
    height: 400px;
    transform: rotateX(-30deg) rotateY(-35deg) rotateZ(-3deg);
    transform-style: preserve-3d;
}

.face {
    width: 400px;
    height: 400px;
    position: relative;
    transform-style: preserve-3d;
}

.surface {
    width: 400px;
    height: 400px;
    position: absolute;
    left: 0;
    top: 0;
    transform-style: preserve-3d;
}

.u {
    transform: rotateX(90deg) translateZ(200px);
}

.d {
    transform: rotateX(-90deg) translateZ(200px);
}

.r {
    transform: rotateY(90deg) translateZ(200px);
}

.l {
    transform: rotateY(-90deg) translateZ(200px);
}

.f {
    transform: translateZ(200px);
}

.b {
    transform: translateZ(-200px) rotateY(180deg);
}

.block {
    font-size: 64px;
    background-color: black;
    width: 200px;
    height: 200px;
    float: left;
    transform-style: preserve-3d;
}

.btn {
    width: 120px;
    height: 45px;
    font-size: 20px;
    margin-right: 10px;
}

.rotate-btns {
    margin: 0 auto 0;
    width: 900px;
}

.control-btns {
    margin: 15px auto;
    width: 900px;
}

.paper {
    width: 190px;
    height: 190px;
    margin: 5px 5px;
    border-radius: 8px;
    transform-style: preserve-3d;
}

#pattern {
    font-size: 20px;
    padding: 5px;
    resize: both;
    width: 372px;
    height: 390px;
}

.c {
    width: 900px;
    padding: 0;
    float: none;
    position: absolute;
    top: 30px;
    right: 0;
}
